﻿using System;
using System.Collections.Generic;
using System.Linq;
using System.Text;
using System.Web;
using System.Web.UI;
using System.Web.UI.WebControls;

namespace Common
{
    public class SearchChoose
    {
        public string Choose(DropDownList ddlSelect)
        {
            string msgForm = "";
            if (ddlSelect.SelectedValue == "1")
            {
                string url = "SearchMain.aspx";
                msgForm = string.Format("<script>window.location.href = '{0}';</script>", url);
            }
            else if (ddlSelect.SelectedValue == "2")
            {
                string url = "SearchNode2.aspx";
                msgForm = string.Format("<script>window.location.href = '{0}';</script>", url);
            }
            else if (ddlSelect.SelectedValue == "3")
            {
                string url = "SearchNode3.aspx";
                msgForm = string.Format("<script>window.location.href = '{0}';</script>", url);
            }
            else if (ddlSelect.SelectedValue == "4")
            {
                string url = "SearchOrderStart.aspx";
                msgForm = string.Format("<script>window.location.href = '{0}';</script>", url);
            }
            else if (ddlSelect.SelectedValue == "5")
            {
                string url = "SeachSampleOut.aspx";
                msgForm = string.Format("<script>window.location.href = '{0}';</script>", url);
            }
            else if (ddlSelect.SelectedValue == "6")
            {
                string url = "SearchMainAndLog.aspx";
                msgForm = string.Format("<script>window.location.href = '{0}';</script>", url);
            }
            else if (ddlSelect.SelectedValue == "7")
            {
                string url = "SearchLog2.aspx";
                msgForm = string.Format("<script>window.location.href = '{0}';</script>", url);
            }
            return msgForm;
        }
    }
}
